package cn.zh.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

//用户
@Data
@Accessors(chain = true)
public class User {

  private Long id;
  private String nickname;//昵称
  private String phone;
  private String username;//账号
  private String password;//密码
  private String sex;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date createTime;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date updateTime;

}
